package com.sky.task;

import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

//@Component
@Slf4j
public class MyTask {

    @XxlJob("MyTask")
    public void doTask() {
        log.info("任务触发了,{}", LocalDateTime.now());
    }
}
